package com.wswy.wzcx.ui.component

import android.graphics.RectF
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.che.libcommon.recycler.Component
import com.wswy.wzcx.R

/**
 * Created by wangduheng26 on 2018/4/3.
 * wangduheng26@gmail.com
 */
class WZDBComponent2(parent: ViewGroup) : Component<RectF> {
    var data: RectF? = null
    override fun getView(): View {
        return rootView //To change body of created functions use File | Settings | File Templates.
    }

    var rootView: View = LayoutInflater.from(parent.context).inflate(R.layout.item_add_driver_license, parent, false)
        private set

    override fun bind(data: RectF?) {
//        super.bind(data)
        this.data = data
        val textView = view.findViewById<TextView>(R.id.textview)
        textView.text = "添加新的车辆"
    }

}